home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 38
/
Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso
/
-seriously_amiga-
/
programming
/
e
/
amsp4e
/
amsp_example4.e
< prev
next >
Wrap
Text File
|
1999-01-25
|
1KB
|
34 lines
/******************************
*******************************
** ** Used:
** example 4 for AmosBobs.m **
** ** - mGetIBPalette
** Mouse as bobs. ** - mLoadIB
** ** - mEraseIB
** (C) 1999 By Krzys Cmok ** - mIB
** Sun Jan 17 15:30:53 1999 **
*******************************
******************************/
MODULE '*amosbobs', /* open module for amos bobs */
'intuition/screens' /* open module for screens */
PROC main()
DEF databank,s:PTR TO screen /* definition of datas (databank) and screen (s) */
databank:=mLoadIB('willy.abk') /* load .abk file */
s:=OpenS(320,200,4,0,'Example 4');
SetStdRast(s.rastport)
mGetIBPalette(databank,s) /* palette to screen */
REPEAT
mIB(s.rastport,databank,1,s.mousex,s.mousey,10); WaitTOF() /* now mouse! */
UNTIL Mouse()=1
CloseS(s)
mEraseIB(databank) /* clean memory */
ENDPROC